package com.example.tsproject.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.tsproject.entity.CommentWithStudent;
import com.example.tsproject.entity.Comments;
import com.example.tsproject.service.CommentsService;
import com.example.tsproject.mapper.CommentsMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author DELL
* @description 针对表【comments】的数据库操作Service实现
* @createDate 2024-09-24 21:09:01
*/
@Service
public class CommentsServiceImpl extends ServiceImpl<CommentsMapper, Comments>
    implements CommentsService{

    @Override
    public List<CommentWithStudent> getCommentsByPostId(Integer postId) {
        return baseMapper.selectCommentsByPostId(postId);
    }
}




